package com.tristia.entity;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "goods"
})
@XmlRootElement
public class Goods {

    @XmlElement(name="good", required = true)
    protected List<Good> goods;

    public List<Good> getGoods() {
        if (goods == null) {
        	goods = new ArrayList<Good>();
        }
        return this.goods;
    }

	@Override
	public String toString() {
		return (this.goods != null) ? "{\"goods\": " + this.goods.toString() + "}" : "{goods:[]}";
	}
}
